﻿<Window x:Class="CameraControllers.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Orbital Camera Controller" Height="372" Width="509">
    <DockPanel>
        <StackPanel>
            <Button Margin="6, 6, 0, 0"
                    Name="btnCreateTriangle"
                    Click="OnCreateTriangleButtonClick"
                    Content="Create Triangle">
            </Button>
            <Button Margin="6, 6, 0, 0"
                    Name="btnCreateCube"
                    Click="OnCreateCubeButtomClick"
                    Content="Create Cube">
            </Button>
        </StackPanel>
		<Border Name="border"
				Margin="6"
                Background="Gray"
				MouseUp="OnViewportMouseUp"
                MouseDown="OnViewportMouseDown"
                MouseMove="OnViewportMouseMove">
			<Viewport3D Name="mainViewport" ClipToBounds="True">
                <ModelVisual3D>
                    <ModelVisual3D.Content>
                        <DirectionalLight
                            Color="White"
                            Direction="-2.0, -3.0, -1.0" />
                    </ModelVisual3D.Content>
                </ModelVisual3D>
            </Viewport3D>
        </Border>
    </DockPanel>
</Window>
